<!-- tag::allButValidation[] -->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
  <head>
    <title>选择课程</title>
    <link rel="stylesheet" th:href="@{/styles.css}" />
  </head>

  <body>

    <form method="POST" th:action="@{/select}" th:object="${Select}">
    
    <div class="grid">
      <div class="ingredient-group" id="wraps">
      <h3>选择你的课程</h3>
      <div th:each="ingredient : ${class}">
        <input name="ingredients" type="checkbox" th:value="${ingredient.id}" />
        <span th:text="${ingredient.id}">INGREDIENT</span><br/>
      </div>
      </div>
      </div>
      <input type="submit" value="确定"/>
    </form>

  </body>
</html>
